{us/mf/mfdtitle.i}
define variable l_line as character no-undo.

input from /home/mfg/beginvar.csv.

repeat:
    import unformatted l_line.
    create xxcstall_hist.
    assign xxcstall_domain = global_domain
           xxcstall_site   = "500"
           xxcstall_year   = 2019
           xxcstall_entity = "9165"
           xxcstall_period = 7
           xxcstall_part   = entry(1,l_line)
    xxcstall_endaprate   = dec(entry(2,l_line)) 
    xxcstall_sendmusage   = dec(entry(3,l_line))
    xxcstall_sendlbrrate = dec(entry(4,l_line))
    xxcstall_sendbdnrate = dec(entry(5,l_line))
    xxcstall_sendothers   = dec(entry(6,l_line))
    xxcstall_sendsf       = dec(entry(7,l_line))
    xxcstall_sendsf_mtl  = dec(entry(8,l_line))
    xxcstall_sendsf_lbr  = dec(entry(9,l_line))
    xxcstall_sendsf_bdn = dec(entry(10,l_line))
    xxcstall_sendsf_ovh   = dec(entry(11,l_line)).
    

end.